{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MIN24\Dropbox\APSA-2018\PSRM Replication v2\Corstange log_Grapevine Effect.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 2 Jun 2020, 13:59:20

{com}. use "C:\Users\MIN24\Dropbox\APSA-2018\PSRM Replication v2\Corstange raw data_Grapevine Effect.dta" 

. do "C:\Users\MIN24\AppData\Local\Temp\STD66c_000000.tmp"
{txt}
{com}. 
. gen day=.
{txt}(2,481 missing values generated)

{com}. replace day=0 if q1=="6/29/2011 0:00"
{txt}(135 real changes made)

{com}. replace day=1 if q1=="6/30/2011 0:00"
{txt}(211 real changes made)

{com}. replace day=2 if q1=="7/1/2011 0:00"
{txt}(185 real changes made)

{com}. replace day=3 if q1=="7/2/2011 0:00"
{txt}(206 real changes made)

{com}. replace day=4 if q1=="7/3/2011 0:00"
{txt}(83 real changes made)

{com}. replace day=5 if q1=="7/4/2011 0:00"
{txt}(197 real changes made)

{com}. replace day=6 if q1=="7/5/2011 0:00"
{txt}(357 real changes made)

{com}. replace day=7 if q1=="7/6/2011 0:00"
{txt}(330 real changes made)

{com}. replace day=8 if q1=="7/7/2011 0:00"
{txt}(358 real changes made)

{com}. replace day=9 if q1=="7/8/2011 0:00"
{txt}(251 real changes made)

{com}. replace day=10 if q1=="7/9/2011 0:00"
{txt}(71 real changes made)

{com}. replace day=11 if q1=="7/10/2011 0:00"
{txt}(46 real changes made)

{com}. replace day=12 if q1=="7/11/2011 0:00"
{txt}(37 real changes made)

{com}. replace day=15 if q1=="7/14/2011 0:00"
{txt}(14 real changes made)

{com}. 
. bysort q2: sum day

{txt}{hline}
-> q2 = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         28           2           0          2          2

{txt}{hline}
-> q2 = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        252    2.559524    3.270115          0          9

{txt}{hline}
-> q2 = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        248    5.608871    1.755339          0          8

{txt}{hline}
-> q2 = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        207     2.63285    1.494483          1         15

{txt}{hline}
-> q2 = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        351    7.390313    1.726704          1         15

{txt}{hline}
-> q2 = 6

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        408    4.470588    2.212122          0         15

{txt}{hline}
-> q2 = 7

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         33          12           0         12         12

{txt}{hline}
-> q2 = 8

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        351    3.905983    2.513903          0         15

{txt}{hline}
-> q2 = 9

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        161    7.658385    .8667871          3         11

{txt}{hline}
-> q2 = 10

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        104    7.019231    .9028624          6          9

{txt}{hline}
-> q2 = 13

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         29    8.137931    .3509312          8          9

{txt}{hline}
-> q2 = 15

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        110    9.036364    .4477727          7         10

{txt}{hline}
-> q2 = 16

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         16      9.8125         .75          7         10

{txt}{hline}
-> q2 = 17

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         39    9.769231    .9857281          9         11

{txt}{hline}
-> q2 = 18

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         80      9.1625    .3712364          9         10

{txt}{hline}
-> q2 = 19

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         47    10.38298    .7387766          9         12

{txt}{hline}
-> q2 = 20

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         17          11           0         11         11

{txt}
{com}. 
. gen date2 = day
{txt}
{com}. replace date2 = date2-2 if q2==1
{txt}(28 real changes made)

{com}. replace date2 = date2-0 if q2==2
{txt}(0 real changes made)

{com}. replace date2 = date2-0 if q2==3
{txt}(0 real changes made)

{com}. replace date2 = date2-1 if q2==4
{txt}(207 real changes made)

{com}. replace date2 = date2-1 if q2==5
{txt}(351 real changes made)

{com}. replace date2 = date2-0 if q2==6
{txt}(0 real changes made)

{com}. replace date2 = date2-12 if q2==7
{txt}(33 real changes made)

{com}. replace date2 = date2-0 if q2==8
{txt}(0 real changes made)

{com}. replace date2 = date2-3 if q2==9
{txt}(161 real changes made)

{com}. replace date2 = date2-6 if q2==10
{txt}(104 real changes made)

{com}. replace date2 = date2-8 if q2==13
{txt}(29 real changes made)

{com}. replace date2 = date2-7 if q2==15
{txt}(110 real changes made)

{com}. replace date2 = date2-7 if q2==16
{txt}(16 real changes made)

{com}. replace date2 = date2-9 if q2==17
{txt}(39 real changes made)

{com}. replace date2 = date2-9 if q2==18
{txt}(80 real changes made)

{com}. replace date2 = date2-9 if q2==19
{txt}(47 real changes made)

{com}. replace date2 = date2-11 if q2==20
{txt}(17 real changes made)

{com}. 
. gen treatment=.
{txt}(2,481 missing values generated)

{com}. replace treatment=0 if q4==1
{txt}(381 real changes made)

{com}. replace treatment=1 if q4==2
{txt}(434 real changes made)

{com}. 
. gen shianeigh=0
{txt}
{com}. replace shianeigh=1 if q30==3
{txt}(434 real changes made)

{com}. replace shianeigh=. if q30==-98
{txt}(27 real changes made, 27 to missing)

{com}. tab shianeigh

  {txt}shianeigh {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,020       82.31       82.31
{txt}          1 {c |}{res}        434       17.69      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      2,454      100.00
{txt}
{com}. 
. replace q18=. if q18==-99
{txt}(129 real changes made, 129 to missing)

{com}. replace q18=. if q18==-98
{txt}(53 real changes made, 53 to missing)

{com}. replace q18=. if q18==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q21=. if q21==-99
{txt}(46 real changes made, 46 to missing)

{com}. replace q21=. if q21==-98
{txt}(43 real changes made, 43 to missing)

{com}. replace q21=. if q21==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q22=. if q22==-99
{txt}(73 real changes made, 73 to missing)

{com}. replace q22=. if q22==-98
{txt}(115 real changes made, 115 to missing)

{com}. replace q22=. if q22==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q24=. if q24==-99
{txt}(130 real changes made, 130 to missing)

{com}. replace q24=. if q24==-98
{txt}(43 real changes made, 43 to missing)

{com}. replace q24=. if q24==99
{txt}(381 real changes made, 381 to missing)

{com}. 
. egen support_hezbol = rowmean(q18 q21 q22 q24)
{txt}(399 missing values generated)

{com}. 
. replace q7=. if q7==-99
{txt}(15 real changes made, 15 to missing)

{com}. replace q7=. if q7==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q8=. if q8==-99
{txt}(116 real changes made, 116 to missing)

{com}. replace q8=. if q8==-98
{txt}(38 real changes made, 38 to missing)

{com}. replace q8=. if q8==99
{txt}(381 real changes made, 381 to missing)

{com}. 
. 
. *** Table 5 ***
. 
. areg support_hezbol c.date2 c.date2#shianeigh q7 q8, absorb(q2) cluster(q2) 
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     1,910
{txt}{col 49}F({res}   4{txt},{res}     16{txt}){col 67}= {res}      1.86
{txt}{col 49}Prob > F{col 67}= {res}    0.1671
{txt}{col 49}R-squared{col 67}= {res}    0.2249
{txt}{col 49}Adj R-squared{col 67}= {res}    0.2167
{txt}{col 49}Root MSE{col 67}= {res}    1.3670

{txt}{ralign 83:(Std. Err. adjusted for {res:17} clusters in q2)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}   support_hezbol{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}date2 {c |}{col 19}{res}{space 2}-.0571728{col 31}{space 2} .0674509{col 42}{space 1}   -0.85{col 51}{space 3}0.409{col 59}{space 4}-.2001624{col 72}{space 3} .0858167
{txt}{space 17} {c |}
shianeigh#c.date2 {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .1970967{col 31}{space 2}  .081162{col 42}{space 1}    2.43{col 51}{space 3}0.027{col 59}{space 4} .0250411{col 72}{space 3} .3691524
{txt}{space 17} {c |}
{space 15}q7 {c |}{col 19}{res}{space 2}-.0279197{col 31}{space 2}  .038522{col 42}{space 1}   -0.72{col 51}{space 3}0.479{col 59}{space 4}-.1095827{col 72}{space 3} .0537432
{txt}{space 15}q8 {c |}{col 19}{res}{space 2}  .035891{col 31}{space 2} .0402579{col 42}{space 1}    0.89{col 51}{space 3}0.386{col 59}{space 4} -.049452{col 72}{space 3}  .121234
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3.085511{col 31}{space 2} .2511304{col 42}{space 1}   12.29{col 51}{space 3}0.000{col 59}{space 4} 2.553139{col 72}{space 3} 3.617884
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               q2 {c |}   absorbed                                      (17 categories)

{com}. 
. 
. drop if q2==1
{txt}(28 observations deleted)

{com}. drop if q2==7
{txt}(33 observations deleted)

{com}. drop if q2==20
{txt}(17 observations deleted)

{com}. 
. 
. *** Table A5 ***
. 
. areg support_hezbol c.date2 c.date2#shianeigh q7 q8, absorb(q2) cluster(q2) 
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     1,852
{txt}{col 49}F({res}   4{txt},{res}     13{txt}){col 67}= {res}      1.84
{txt}{col 49}Prob > F{col 67}= {res}    0.1811
{txt}{col 49}R-squared{col 67}= {res}    0.2193
{txt}{col 49}Adj R-squared{col 67}= {res}    0.2121
{txt}{col 49}Root MSE{col 67}= {res}    1.3687

{txt}{ralign 83:(Std. Err. adjusted for {res:14} clusters in q2)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}   support_hezbol{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}date2 {c |}{col 19}{res}{space 2}-.0572799{col 31}{space 2} .0679336{col 42}{space 1}   -0.84{col 51}{space 3}0.414{col 59}{space 4}-.2040416{col 72}{space 3} .0894818
{txt}{space 17} {c |}
shianeigh#c.date2 {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .1975163{col 31}{space 2} .0818599{col 42}{space 1}    2.41{col 51}{space 3}0.031{col 59}{space 4} .0206686{col 72}{space 3} .3743639
{txt}{space 17} {c |}
{space 15}q7 {c |}{col 19}{res}{space 2}-.0257312{col 31}{space 2}  .038346{col 42}{space 1}   -0.67{col 51}{space 3}0.514{col 59}{space 4}-.1085728{col 72}{space 3} .0571103
{txt}{space 15}q8 {c |}{col 19}{res}{space 2} .0416476{col 31}{space 2} .0409983{col 42}{space 1}    1.02{col 51}{space 3}0.328{col 59}{space 4}-.0469238{col 72}{space 3} .1302189
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3.085548{col 31}{space 2} .2599851{col 42}{space 1}   11.87{col 51}{space 3}0.000{col 59}{space 4} 2.523885{col 72}{space 3} 3.647212
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               q2 {c |}   absorbed                                      (14 categories)

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MIN24\Dropbox\APSA-2018\PSRM Replication v2\Corstange log_Grapevine Effect.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 2 Jun 2020, 13:59:46
{txt}{.-}
{smcl}
{txt}{sf}{ul off}